<?php 
// A sess?o precisa ser iniciada em cada p?gina diferente
if (!isset($_SESSION)){
	session_start();
}
header("Content-Type: text/html; charset=utf-8", true);

include_once "UserControl.php";
$cliente = UserControl::getCliente($idCliente);
echo " <form class='join-form big' name='editarUsuario'  enctype='multipart/form-data' method='POST' action='acaoEditarCliente.php?idc=$idCliente'>
			
	<fieldset class='fieldset-join'> 
		<legend><div class=\"highlights\"><span>Usuário</span></div></legend>  
	
		<div class='column'>
			<label class='join-label' for 'label-name'>Nome completo:</label> 
			<input class='join-input' type='text' name='name' id='label-name' value='$cliente->Name' > 

			<label class='join-label' for 'label-cpf'>CPF:</label> 
			<input class='join-input' type='text' name='cpf' id='label-cpf' value='$cliente->CPF'>

			<label class='join-label input-small inline' for 'label-type'>Sexo:</label> 
			<label class='join-label' for 'label-birthday'>Data de Nascimento:</label>

			<select class='join-input input-small inline' name='select' value='$cliente->Gender'>
				<option value='F'>Feminino</option>   
				<option value='M' selected>Masculino</option>  
			</select>
			<div class='date'></div>
			<input class='join-input input-small' type='text' name='birthday' id='label-birthday' value='$cliente->DateOfBirth'>

			<label class='join-label input-small inline' for 'label-phone'>Telefone:</label> 
			<label class='join-label input-small inline' id='cel' for 'label-cel'>Celular:</label> 			
			
			<input class='join-label input-small inline' type='text' name='phone' id='label-phone' value='$cliente->Fone'>			
			<input class='join-label input-small' type='text' name='cel' id='label-cel' value='$cliente->Cel'>

			<label class='join-label' for='label-login'>Login:</label> 
			<input class='join-input' type='text' name='login' id='label-login' value='$cliente->Login'>
			
			<label class='join-label' for='label-password'>Senha:</label> 
			<input class='join-input' type='password' name='password' id='label-password' value='$cliente->Password'>

			<label class='join-label' for 'label-confirm'>Confirmar senha:</label> 
			<input class='join-input' type='password' name='confirm' id='label-confirm' value='$cliente->Password'>
		</div>
		
		<div class='column'>
			<label class='join-label' for 'label-mail'>E-mail:</label> 
			<input class='join-input' type='text' name='mail' id='label-mail' value='$cliente->Email'>

			<label class='join-label' for 'label-cep'>CEP:</label> 
			<input class='join-input' type='text' name='cep' id='label-cep' value='$cliente->ZipCode'> 

			<label class='join-label' for 'label-neighboor'>Bairro:</label> 
			<input class='join-input' type='text' name='neighboor' id='label-neighboor' value='$cliente->District'>

			<label class='join-label' for='label-city'>Cidade:</label>
			<input class='join-input' type='text' name='city' id='label-city' value='$cliente->City'>

			<label class='join-label' for 'label-address'>Endereço:</label> 
			<input class='join-input' type='text' name='address' id='label-address' value='$cliente->Street'> 

			<label class='join-label input-small inline' for='label-complement'>Complemento:</label>
			<label class='join-label input-small inline' id='state' for='label-state'>Estado:</label> 
			
			<input class='join-input input-small inline' type='text' name='complement' id='label-complement' value='$cliente->Complement'>
			<input class='join-input input-small inline' type='text' name='state' id='label-state' value='$cliente->State'>
			
			<label class='join-label input-small' for='label-country'>País:</label>
			<input class='join-input input-small' type='text' name='country' id='label-country' value='$cliente->Country'>
			
			<input class='submit' type='submit' value='Atualizar'> 
			<input class='submit' type='reset' value='Cancelar'>
		</div>
	</fieldset>
</form>";

?>